﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using WuDada.Core.Member.Domain;

namespace WuDada.Core.Post.Domain
{
    [Serializable]
    [DataContract]
    public class AnswerVO : BaseObject
    {
        #region Constructor

        public AnswerVO()
        {
            this.SortNo = 0;
        }

        #endregion

        #region Property

        /// <summary>
        /// Pkey
        /// </summary>
        [DataMember]
        public virtual int AnswerId { get; set; }

        [DataMember]
        public virtual int SortNo { get; set; }

        [DataMember]
        public virtual int Flag { get; set; }

        /// <summary>
        /// 對應的主題PostId 不拉關聯，只記Id主要可讓Post查出相關的作答，Post刪除作答還是可以保留
        /// </summary>
        [DataMember]
        public virtual int PostId { get; set; }

        /// <summary>
        /// 主題
        /// </summary>
        [DataMember]
        public virtual string PostTitle { get; set; }

        /// <summary>
        /// 屬於的會員
        /// </summary>
        [DataMember]
        public virtual MemberVO Member { get; set; }

        /// <summary>
        /// 得到的總分數
        /// </summary>
        [DataMember]
        public virtual double TotalScore { get; set; } 

        /// <summary>
        /// 是否申請證明
        /// </summary>
        [DataMember]
        public virtual bool ApplyForVerification { get; set; }

        /// <summary>
        /// 申請證明進度 0.無 1.已處理 2.未處理
        /// </summary>
        [DataMember]
        public virtual int ApplyForVerificationStatus { get; set; }

        /// <summary>
        /// 測驗結果 0.無 1.及格 2.不及格
        /// </summary>
        [DataMember]
        public virtual int Result { get; set; } 

        #endregion
    }
}
